﻿using FrameworkCore.Modules.Startups;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using OllamaSharp;

namespace AiBLSmartEdu.Module.AISlimmingAssistant.API
{
    /// <summary>
    /// AI减肥
    /// </summary>
    internal class AiBLSmartEduStartup : IAiBLSmartEduStartup
    {
        public int Order => 3000;

        public void Configure(IApplicationBuilder application)
        {
        }

        public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
        {
            services.AddSingleton<IOllamaApiClient>(sp =>
            {
                return new OllamaApiClient("http://localhost:11434");
            });
        }
    }
}
